FROM centos:8
MAINTAINER author "dinglei@kernelsoft.com"
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /workdir
# 替换源
RUN	dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y  && \
    dnf distro-sync -y
RUN yum install wget -y
RUN yum install bison -y
RUN yum install python36 -y 
RUN yum install gawk -y
RUN yum install gcc-toolset-12 -y
RUN ln -s /opt/rh/gcc-toolset-12/root/bin/gcc /usr/bin/gcc